﻿using Payroll.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Payroll.BusinessLogic.Devices
{
    public partial interface IDeviceService
    {
        /// <summary>
        /// Saves the specified device.
        /// </summary>
        /// <param name="device">The device.</param>
        /// <returns></returns>
        int Save(Devices device);
        /// <summary>
        /// Gets all device.
        /// </summary>
        /// <param name="deviceCode">The device code.</param>
        /// <param name="deviceName">Name of the device.</param>
        /// <param name="pageSize">Size of the page.</param>
        /// <param name="pageIndex">Index of the page.</param>
        /// <returns></returns>
        PagedList<Devices> GetAllDevice(string deviceCode, string deviceName, int pageSize = int.MaxValue, int pageIndex = 0);
        /// <summary>
        /// Gets the by device ID.
        /// </summary>
        /// <param name="deviceID">The device ID.</param>
        /// <returns></returns>
        Devices GetByDeviceID(int deviceID);
        PagedList<Devices> Delete(string deviceId, string deviceCode, string deviceName, int pageSize = int.MaxValue, int pageIndex = 0);
    }
}
